package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

//节点流(低级流)有文件流和网络流
//处理流(高级流)处理数据.;流链接.;,对象流,缓冲流,缓冲字符流,缓冲字节流

public class OosDemo {
    public static void main(String[] args) throws IOException {
        String name = "范传奇";
        int age = 28;
        String gender = "男";
        //序列化忽略
        String[] otherInfo = {"帅","认真","讲课好","技术强"};

        Person nextT = new Person(name,age,gender,otherInfo);
        FileOutputStream fos = new FileOutputStream("nextT.txt");
        ObjectOutputStream oos = new ObjectOutputStream(fos);
        oos.writeObject(nextT);
        System.out.println("完毕");
        oos.close();
    }
}
